package edu.hwadee.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Officematerial entity. @author MyEclipse Persistence Tools
 */

public class Officematerial implements java.io.Serializable {

	// Fields

	private Integer officematerialId;
	private Company companyByKeepingUnit;
	private Company companyBySupplier;
	private String officematerialName;
	private String specAndType;
	private Float number;
	private String note;
	private String pinyin;
	private String barCode;
	private String unit;
	private Float price;
	private Set officematerialbuies = new HashSet(0);
	private Set officematerialuses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Officematerial() {
	}

	/** full constructor */
	public Officematerial(Company companyByKeepingUnit, Company companyBySupplier, String officematerialName,
			String specAndType, Float number, String note, String pinyin, String barCode, String unit, Float price,
			Set officematerialbuies, Set officematerialuses) {
		this.companyByKeepingUnit = companyByKeepingUnit;
		this.companyBySupplier = companyBySupplier;
		this.officematerialName = officematerialName;
		this.specAndType = specAndType;
		this.number = number;
		this.note = note;
		this.pinyin = pinyin;
		this.barCode = barCode;
		this.unit = unit;
		this.price = price;
		this.officematerialbuies = officematerialbuies;
		this.officematerialuses = officematerialuses;
	}

	// Property accessors

	public Integer getOfficematerialId() {
		return this.officematerialId;
	}

	public void setOfficematerialId(Integer officematerialId) {
		this.officematerialId = officematerialId;
	}

	public Company getCompanyByKeepingUnit() {
		return this.companyByKeepingUnit;
	}

	public void setCompanyByKeepingUnit(Company companyByKeepingUnit) {
		this.companyByKeepingUnit = companyByKeepingUnit;
	}

	public Company getCompanyBySupplier() {
		return this.companyBySupplier;
	}

	public void setCompanyBySupplier(Company companyBySupplier) {
		this.companyBySupplier = companyBySupplier;
	}

	public String getOfficematerialName() {
		return this.officematerialName;
	}

	public void setOfficematerialName(String officematerialName) {
		this.officematerialName = officematerialName;
	}

	public String getSpecAndType() {
		return this.specAndType;
	}

	public void setSpecAndType(String specAndType) {
		this.specAndType = specAndType;
	}

	public Float getNumber() {
		return this.number;
	}

	public void setNumber(Float number) {
		this.number = number;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getPinyin() {
		return this.pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public String getBarCode() {
		return this.barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Set getOfficematerialbuies() {
		return this.officematerialbuies;
	}

	public void setOfficematerialbuies(Set officematerialbuies) {
		this.officematerialbuies = officematerialbuies;
	}

	public Set getOfficematerialuses() {
		return this.officematerialuses;
	}

	public void setOfficematerialuses(Set officematerialuses) {
		this.officematerialuses = officematerialuses;
	}

}